<?php
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'html_generator.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_roulette.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_matches.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php';
$game_id = filter_input(INPUT_POST, "game_id");
$roulette_id = filter_input(INPUT_POST, "roulette_id");

$match_id = api_roulette::get_sub_match_id_by_game_id_and_parent_id($game_id, $roulette_id);
$item = api_matches::get_match_by_id($match_id);
show_match_status_message($item['is_cancel'], $item['cancel_reason'], 
                                    $item['win_choice_id'], "The match's winner is '" . $item['win_choice_name'] . "'");

